package cate.common.table.res.hero.sacrifice.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "英雄高阶献祭星级")
public class SacrificeBreachStarRow extends ERow {

    @NoteField(value = "英雄星级")
    public int star;

    @NoteField(value = "命星")
    public int seg;

    @NoteField(value = "返还")
    public String rewardStr;

    @NoteField(value = "返还魂晶")
    public int vial;

    @Override
    public void parse(XSSFRowWrap xr) {
        this.id = xr.getInteger("ID", 0);
        this.star = xr.getInteger("英雄星级", 0);
        this.seg = xr.getInteger("命星", 0);
        this.rewardStr = xr.getString("返还");
        this.vial = xr.getInteger("返还魂晶", 0);
    }
}
